﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="buyer_budgetEdit.aspx.cs"
    Inherits="PeisongWeb.buyer_budgetEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>采购配送系统-预算管理</title>
    <!--#include file="../global.inc" -->

    <script type="text/javascript" src="/app_common/scripts/jquery-cn.js"></script>

    <script type="text/javascript">
        function checkForm() {
            var patrn = /^[\-\+]?([0-9]\d*|0|[1-9]\d{0,2}(,\d{3})*)(\.\d+)?$/;
            if ($("#txt_BudgetFee").val() == "") {
                $("#val_taxfee").show();
                return false;
            }
            else {
                $("#val_taxfee").hide();
            }
            if (!patrn.exec($("#txt_BudgetFee").val())) {
                $("#val_taxfee").html("格式不正确！");
                $("#val_taxfee").show();
                return false;
            }
            else {
                $("#val_taxfee").hide();
            }
            return true;
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="sm1" runat="server">
    </asp:ScriptManager>
    <div id="container">
        <uc1:headerV2 runat="server" ID="header1" />
        <div id="homemain">
            <div id="main">
                <div class="title">
                    <div class="title_text">
                        <ul>
                            <li class="color1">预算管理</li>
                        </ul>
                    </div>
                </div>
                <div class="line_top">
                </div>
                <div id="mainmiddle">
                    <asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
                    <Triggers>
                        <asp:PostBackTrigger ControlID="lbtn_Save" />
                    </Triggers>
                        <ContentTemplate>
                            <div class="left">
                                <div class="login" id="div_reg_2">
                                    <div class="login_title">
                                        <span>设置预算费用</span>
                                    </div>
                                    <div class="login_main">
                                        <ul>
                                            <li runat="server" id="li_Date1">
                                                <label>
                                                    <span class="red">*</span>日期：
                                                </label>
                                                <asp:DropDownList runat="server" ID="ddl_Byear" AutoPostBack="True" OnSelectedIndexChanged="ddl_Byear_SelectedIndexChanged">
                                                </asp:DropDownList>
                                                年
                                                <asp:DropDownList runat="server" ID="ddl_Bmonth">
                                                </asp:DropDownList>
                                                月 </li>
                                            <li runat="server" id="li_Date2" visible="false">
                                                <label>
                                                    日期：
                                                </label>
                                                <asp:Label runat="server" ID="lbl_Year"></asp:Label>
                                                年
                                                <asp:Label runat="server" ID="lbl_Month"></asp:Label>
                                                月 </li>
                                            <li>
                                                <label>
                                                    <span class="red">*</span>金额：
                                                </label>
                                                <input runat="server" id="txt_BudgetFee" name="" type="text" />
                                                <span id="val_taxfee" style="color: Red; display: none">请输入金额!</span> </li>
                                        </ul>
                                        <div style="padding-left: 100px; padding-top: 10px;">
                                            <asp:Button runat="server" ID="lbtn_Save" CssClass="button_red_text button_red" OnClick="lbtn_Save_Click"
                                                OnClientClick="return checkForm();" Text="保存" />
                                            <input type="button" value="返回" onclick="javascript:window.location.href='buyer_budgetList.html'"
                                                class="button_red_text button_red" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <div class="right">
                        <div class="right_login">
                            <ul>
                                <li style="color: #255966">如何设置预算费用？</li>
                                <li>&nbsp;</li>
                                <li>选择要设置的年月，</li>
                                <li>输入预算金额，</li>
                                <li>带<span style="color: Red">*</span>号的为必填项</li>
                                <li>保存后设置完成。</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <uc1:footerV2 runat="server" ID="footer1" />
    </div>
    <input type="hidden" runat="server" id="hd_isHint" />
    </form>
</body>
</html>
